package com.example.common.enums;

/**
 * @author weicong
 * @version 1.0 createTime 2020/2/23 16:20
 */
public enum StatusCodeEnum {

    /**
     * 成功
     */
    SUCCESS(200, "操作成功！"),

    ERROR(500, "操作失败！")
    ;

    StatusCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 状态码
     */
    private int code;

    /**
     * 消息
     */
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
